package tools;

import service.ClientThread;

import java.util.Hashtable;

public class ThreadManage {

    private static Hashtable<Integer, ClientThread> threads = new Hashtable<>();

    public static void addThread(int qq, ClientThread thread) {
        threads.put(qq, thread);
    }

    public static ClientThread getThread(int qq) {
        return threads.get(qq);
    }

    public static void removeThread(int qq) {
        threads.remove(qq);
    }

}
